package com.csu.backmanagesys.Mapper;
import org.apache.ibatis.annotations.Mapper;
import com.csu.backmanagesys.Domain.Product;

import java.util.List;

@Mapper
public interface ProductMapper {
    

    List<Product> selectProduct();

    List<Product> selectProductByName(String name);


    void insertProduct(
             String productId,
             String categoryId,
             String name,
             String description
    );

    void deleteProduct(
            String productId
    );

    void updateProduct(
            String productId,
            String categoryId,
            String name,
            String description
    );
    void updateProductName(
            String name, String productId
    );
    void updatePicture(
            String productId,
            String description
    );

    List<Product> selectProductById(String id);

    List<Product> fuzzySelectProduct(String param);
}
